package org.example.config;

import feign.Logger;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
* @description: openFeign
* @author 杨镇宇
* @date 2024/9/3 17:47
* @version 1.0
*/

@Configuration
public class FooConfiguration {
    /**
     * The Logger.Level object that you may configure per client, tells Feign how much to log. Choices are:
     *
     * NONE, No logging (DEFAULT).
     *
     * BASIC, Log only the request method and URL and the response status code and execution time.
     *
     * HEADERS, Log the basic information along with request and response headers.
     *
     * FULL, Log the headers, body, and metadata for both requests and responses.
     *
     * @return
     */
    @Bean
    Logger.Level feignLoggerLevel() {
        return Logger.Level.FULL;
    }
}
